# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-freecell-solver
pkgver=0.6.0
pkgrel=0
pkgdesc="Freecell Solver bindings"
url="https://fc-solve.shlomifish.org/"
arch="noarch"
license="MIT"
depends="
	py3-cffi
	python3
	"
makedepends="
	py3-pbr
	py3-setuptools
	"
checkdepends="
	py3-pytest
	py3-pytest-cov
	"
subpackages="$pkgname-pyc"
source="https://pypi.python.org/packages/source/f/freecell_solver/freecell_solver-$pkgver.tar.gz"
#options="!check" # Requires unavailable package hacking
builddir="$srcdir/freecell_solver-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$PWD/build/lib" pytest
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
6e9b5fee205ce8e3dbc557d68f2dd8828ce82b31a6ba0e87d4482c1f552938ccd4ac8b9cd2d88ab9729ee79797ab1a8f992d13d97724514278fe1b822c48a5e2  freecell_solver-0.6.0.tar.gz
"
